home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q1082.dms / q1082.adf / src.lzh / Fig / font.c < prev    next >
C/C++ Source or Header  |  1991-07-18  |  889b  |  42 lines

  1. /* 
  2.  *    FIG : Facility for Interactive Generation of figures
  3.  *
  4.  *    Copyright (c) 1985 by Supoj Sutanthavibul (supoj@sally.UTEXAS.EDU)
  5.  *    January 1985.
  6.  *    1st revision : Aug 1985.
  7.  *
  8.  *    %W%    %G%
  9. */
  10. #include "fig.h"
  11. #include "resources.h"
  12. #include "font.h"
  13.  
  14. PIX_FONT        bold_font;
  15. PIX_FONT        roman_font;
  16. PIX_FONT        canvas_font;
  17.  
  18. #ifndef    X11
  19. #ifdef AMIGA
  20. extern struct TextFont * fig_font;
  21. init_font()
  22. {
  23.     bold_font=roman_font=canvas_font=fig_font;
  24. }
  25. #else
  26. init_font()
  27. {
  28.     bold_font = pf_open("/usr/lib/fonts/fixedwidthfonts/screen.b.14");
  29.     roman_font = pf_open("/usr/lib/fonts/fixedwidthfonts/screen.r.14");
  30.     if (bold_font == NULL) bold_font = pf_default();
  31.     if (roman_font == NULL) roman_font = pf_default();
  32.     canvas_font = roman_font;
  33.     }
  34. #endif AMIGA
  35. #else
  36. init_font()
  37. {
  38.     canvas_font = roman_font = XLoadQueryFont(tool_d, NORMAL_FONT);
  39.     bold_font = XLoadQueryFont(tool_d, BOLD_FONT);
  40. }
  41. #endif    X11
  42.